WPForms\Integrations\Square\Connection A

Total Complexity 55
Dependencies 3
Dependents 14
Total lines 549
Lines of code 151
Logical lines of code 73
Comment lines 290
Methods 29
Properties 10

Methods 29

Method Rating Maintainability Complexity Lines of code
__construct()
A
52 9 23
encrypt_tokens()
S
58 6 17
is_configured()
S
77 4 3
is_saveable()
S
78 3 3
is_usable()
S
79 3 3
set_status()
S
70 2 6
get_access_token()
S
79 2 3
get_refresh_token()
S
79 2 3
delete()
S
71 2 5
get()
S
66 2 8
get_mode()
S
80 2 3
get_data()
S
61 1 13
get_statuses()
S
80 1 3
save()
S
72 1 5
is_valid()
S
80 1 3
is_currency_matched()
S
79 1 3
is_expired()
S
79 1 3
is_encrypted()
S
82 1 3
get_live_mode()
S
82 1 3
revoke_tokens()
S
66 1 8
set_scopes_updated()
S
76 1 4
set_renew_at()
S
74 1 4
get_renew_at()
S
82 1 3
get_status()
S
82 1 3
set_currency()
S
76 1 4
get_currency()
S
82 1 3
get_merchant_id()
S
82 1 3
get_client_id()
S
82 1 3
get_scopes_updated()
S
82 1 3